import requests


def correction_notify_feishu():
    """ 题目纠错异步通知飞书 """

    content = [

        dict(
            tag='text',
            text=f"题目分站：123\n"
                 f'类型: 123\n'
                 f"上报时间：123\n"
                 f"内容：123"
        ),

    ]
    try:
        requests.post(
            'https://open.feishu.cn/open-apis/bot/v2/hook/d7685e7d-558d-4b58-a7db-446c5cf425fe',
            json={
                "msg_type": "post",
                "content": {
                    "post": {'zh_cn': {
                        "title": "题目纠错",
                        "content": [content]
                    }}
                }
            }
        )
    except:
        pass

correction_notify_feishu()